package com.freewater.springboot.demo.spel.inlinelist;

import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        ExpressionParser parser = new SpelExpressionParser();
        final List numbers = (List) parser.parseExpression("{1, 2, 3, 4, 5}").getValue();
        System.out.println(numbers);
        final List listOfLists = (List) parser.parseExpression("{{'a','b'},{'x','y'}}").getValue();
        System.out.println(listOfLists);
    }
}
